Previous Book Contents Book Index Next

Inside Macintosh: 3D Graphics Programming With QuickDraw 3D /
Chapter 6 - Style Objects / Style Objects Reference
Style Objects Routines / Managing Shadow-Receiving Styles


Q3ReceiveShadowsStyle_New

You can use the Q3ReceiveShadowsStyle_New function to create a new shadow-receiving style object.

TQ3StyleObject Q3ReceiveShadowsStyle_New (TQ3Boolean receives);
receives
A Boolean value that determines whether the new style object specifies that objects in the scene receive shadows (kQ3True) or do not receive shadows (kQ3False).
DESCRIPTION
The Q3ReceiveShadowsStyle_New function returns, as its function result, a new style object having the shadow-receiving style specified by the receives parameter.

If a new style object could not be created, Q3ReceiveShadowsStyle_New returns the value NULL.

To change the current shadow-receiving style, you must actually draw the style object. You can call Q3Style_Submit to draw the style in retained mode or Q3ReceiveShadowsStyle_Submit (described next) to draw the style in immediate mode.

SEE ALSO
See "Shadow-Receiving Styles" on page 6-9 for a description of shadow-receiving styles.


Previous Book Contents Book Index Next

© Apple Computer, Inc.
11 JUL 1996